package com.cqut.service;

import java.util.List;
import java.util.Map;

import com.cqut.dto.LimitShowDTO;
import com.cqut.dto.ProblemManagerDTO;
import com.cqut.model.ProblemManager;
import com.cqut.pojo.vo.problemInfoVO;

public interface IProblemManagerService {
    boolean save(ProblemManager problemManager);

    boolean update(ProblemManager problemManager);

    boolean delete(String problemId);

    boolean batchDelete(String[] primaryKeys);

    ProblemManager findModel(String problemId);

    ProblemManager findModel(String problemId, String[] parameters);

    Map<String, Object> findMap(String problemId);

    Map<String, Object> findMap(String problemId, String[][] parameters);

    List<ProblemManager> loadModels();

    List<ProblemManager> loadModels(String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<ProblemManager> loadModels(String[] parameters, String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Map<String, Object>> loadMaps();

    List<Map<String, Object>> loadMaps(String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Map<String, Object>> loadMaps(String[][] parameters, String condition, Object[] values, String order, String sort, int curPage, int limit);

    long count();

    long count(String condition, Object[] values);

    long count(String[] parameters, boolean isDistinct);

    long count(String[] parameters, String condition, Object[] values, boolean isDistinct);

	List<problemInfoVO> loadProblemList(ProblemManagerDTO problemManagerDTO,
			LimitShowDTO limitShowDTO);

	Object findCountOfProblems(ProblemManagerDTO problemManagerDTO);
}
